SELECT '01' corp,ORG_MEMBER.CODE psncode,FORMMAIN_0751.FIELD0025 depttype,FORMMAIN_0751.FIELD0026 membertype,FORMMAIN_0751.FIELD0029 contractnum,
"TO_CHAR"(FORMMAIN_0751.FIELD0027,'yyyy-MM-dd') begindate,"TO_CHAR"(FORMMAIN_0751.FIELD0028,'yyyy-MM-dd') enddate,"TO_CHAR"(SYSDATE,'yyyy-MM-dd') signdate
FROM COL_SUMMARY 
LEFT JOIN FORMMAIN_0751 ON FORMMAIN_0751."ID" = COL_SUMMARY.FORM_RECORDID
LEFT JOIN ORG_MEMBER ON ORG_MEMBER."ID" = FORMMAIN_0751.FIELD0002
WHERE COL_SUMMARY."ID" = '${id}'